<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Using jsp:setProperty</TITLE>
<LINK REL=STYLESHEET HREF="JSP-Styles.css" TYPE="text/css">
</HEAD>
<BODY>
	<CENTER>
		<TABLE BORDER=5>
			<TR>
				<TH CLASS="TITLE">Using jsp:setProperty
		</TABLE>
		<jsp:useBean id="entry" class="coreservlets.SaleEntry" />
		<jsp:setProperty name="entry" property="itemID" param="itemID" />
		<jsp:setProperty name="entry" property="numItems" param="numItems" />
		<jsp:setProperty name="entry" property="discountCode"
			param="discountCode" />
		<BR>
		<TABLE BORDER=1>
			<TR CLASS="COLORED">
				<TH>Item ID
				<TH>Unit Price
				<TH>Number Ordered
				<TH>Total Price
			<TR ALIGN="RIGHT">
				<TD><jsp:getProperty name="entry" property="itemID" />
				<TD>$<jsp:getProperty name="entry" property="itemCost" />
				<TD><jsp:getProperty name="entry" property="numItems" />
				<TD>$<jsp:getProperty name="entry" property="totalCost" />
		</TABLE>
	</CENTER>
</BODY>
</HTML>
